﻿using UnityEngine;
using System.Collections;

public class RotateTowards : MonoBehaviour {
	public GameObject ThingToRotate;
	void Start () {
		Reset();
	}
	public void Reset(){
		ThingToRotate.transform.rotation = Quaternion.Euler(new Vector3(0,0,0));
	}
	public void Rotate(){
		//     rotation                =                                                pos - pos of thing to look at = angles we want
		ThingToRotate.transform.rotation = Quaternion.LookRotation(	ThingToRotate.transform.position - Camera.main.transform.position ,	Camera.main.transform.up);
	}
}
